﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="FilmComment.aspx.vb" Inherits="gojira.FilmComment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" GridLines="None" 
            ShowHeader="False">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <h1>
                            <%# Eval("filmName") %>
                        </h1>
                        <p>
                            <asp:Image ID="Image1" runat="server" Height="400px" 
                                ImageUrl='<%# Eval("poster") %>' Width="300px" />
                        </p>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
            ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
            SelectCommand="SELECT [ID], [filmName], [poster] FROM [godzillaFilms] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <br />
    Add a comment:<br />
    <br />
    Subject:<br />
    <asp:TextBox ID="tb_subject" runat="server"></asp:TextBox>
    <br />
    Comment:<br />
    <asp:TextBox ID="tb_message" runat="server" Height="128px" TextMode="MultiLine" 
        Width="402px"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="btn_addComment" runat="server" Text="Add Comment" />
</asp:Content>
